<template>
  <div class="chatsmain">
    <div class="person">
      <ul class="pensonList">
        <li>
          <h4>All Messages</h4>
          <div>
            <i class="el-icon-star-off"></i>
            <i class="el-icon-star-off"></i>
            <i class="el-icon-star-off"></i>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
        <li>
          <div><img src="../../assets/comImg/logo.svg" alt="" /></div>
          <div>
            <h3>
              Jack P. Angulo
              <span>07:15 PM</span>
            </h3>
            <p>
              Lorem ipsum dolor sit amet consectetur adipisicing elit. Soluta
              consequuntur accusantium tempora. Ad officiis voluptate neque,
              deleniti porro necessitatibus aut!
            </p>
          </div>
        </li>
      </ul>
    </div>
    <div class="duihua">
      <div class="conhead">
        <div class="ch_name">
          <div>
            <img src="../../assets/comImg/logo.svg" alt="" />
          </div>
          <div>
            <h3>Jack P. Angulo</h3>
            <p>last seen at 07:15 PM</p>
          </div>
        </div>
        <div class="gongju">
          <i class="el-icon-star-off"></i>
          <i class="el-icon-star-off"></i>
          <i class="el-icon-star-off"></i>
        </div>
      </div>
      <div class="dh_con">
        <ul>
          <li class="my">
            Hi
            <p>7:14AM</p>
          </li>
          <li class="my">
            How are you?
            <p>7:14AM</p>
          </li>
          <li class="other">
            Hi
            <p>7:15AM</p>
          </li>
          <li class="other">
            I am fine
            <p>7:15AM</p>
          </li>
          <li class="other">
            What is about you
            <p>7:15AM</p>
          </li>
          <li class="my">
            I am also fine.
            <p>7:14AM</p>
          </li>
          <li class="my">
            Do I need a jacket?
            <p>7:14AM</p>
          </li>
          <li class="other">
            Sorry, I was trying to charge my phone. What are you trying to say?
            <p>7:15AM</p>
          </li>
        </ul>
      </div>
      <div class="dh_foot">
        <div class="left">
          <i class="el-icon-star-off"></i>
          <i class="el-icon-star-off"></i>
        </div>
        <div class="cen">
          <input placeholder="Type a message" type="text" />
          <div>
            <i class="el-icon-star-off"></i>
            <i class="el-icon-star-off"></i>
            <i class="el-icon-star-off"></i>
          </div>
        </div>
        <div class="rig">
          <i class="el-icon-star-off"></i>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {}
</script>

<style lang="scss">
.chatsmain {
  display: flex;
  height: 100%;
}
.person {
  height: 606px;
  overflow: auto;
  &::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #d0cdc7;
  }
  /* 滚动条中能上下移动的小块 */
  &::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #a09d9d;
  }
  .pensonList {
    border-right: 1px solid #ddd;
    li {
      display: flex;
      justify-content: space-between;
      padding: 16px;
      &:first-child {
        i {
          margin-left: 10px;
        }
      }
      div {
        img {
          width: 50px;
          margin-right: 16px;
        }
        h3 {
          font-size: 15px;
          margin-top: 8px;
          position: relative;
          span {
            position: absolute;
            right: 10px;
            color: #acb6d1;
            font-size: 12px;
            font-weight: 0;
          }
        }
        p {
          width: 310px;
          overflow: hidden;
          text-overflow: ellipsis;
          color: #a2a2a2;
          font-size: 12px;
          white-space: nowrap;
        }
      }
    }
  }
}
.duihua {
  width: 1019px;
  .conhead {
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    img {
      width: 50px;
      margin-right: 10px;
    }
    i {
      margin-left: 10px;
    }
    .ch_name {
      display: flex;

      h3 {
        font-size: 14px;
        margin-top: 8px;
      }
      p {
        font-size: 12px;
      }
    }
  }
  .dh_con {
    height: 476px;
    overflow: auto;
    &::-webkit-scrollbar {
      width: 5px;
      height: 5px;
      background-color: #d0cdc7;
    }
    /* 滚动条中能上下移动的小块 */
    &::-webkit-scrollbar-thumb {
      border-radius: 10px;
      box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
      background-color: #a09d9d;
    }
    ul {
      display: flex;
      flex-direction: column;
      padding-top: 10px;
    }
    li {
      margin-bottom: 12px;
      padding: 16px;
      border-radius: 6px;
      font-size: 14px;
      overflow: hidden;
      p {
        font-size: 12px;
        color: #acacac;
        margin: 10px 0 0 6px;
        float: right;
      }
    }
    .my {
      background: #f3ecff;
      color: #ae6eea;
      margin-left: auto;
      margin-right: 10px;
    }
    .other {
      margin-left: 15px;
      background: #e8faff;
      color: #142037;
      margin-right: auto;
      max-width: 350px;
    }
  }
  .dh_foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    background: #fafafa;
    .left {
      margin-left: 10px;
      i:first-child {
        width: 50px;
        height: 50%;
        background: #f4ebfc;
        display: inline-block;
        text-align: center;
        line-height: 50px;
        font-size: 23px;
        color: #ae6eea;
        border-radius: 8px;
        margin-right: 10px;
      }
      i + i {
        font-size: 18px;
      }
    }
    .cen {
      width: 842px;
      padding: 14px 0 14px 24px;
      box-sizing: border-box;
      border: 1px solid #ddd;
      border-radius: 50px;
      background: #fff;
      position: relative;
      input {
        width: 672px;
        border: none;
        outline: none;
      }
      div {
        position: absolute;
        right: 10px;
        top: 16px;
        i {
          margin-right: 15px;
        }
      }
    }
    .rig {
      margin-left: 20px;
      i {
        width: 45px;
        height: 45px;
        background: #ae6eea;
        display: inline-block;
        border-radius: 50%;
        color: #fff;
        text-align: center;
        line-height: 45px;
      }
    }
  }
}
</style>
